package com.link2room.jetfire.controller.task;

import com.link2room.common.dto.param.base.BaseL2rParamDto;
import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.jetfire.facade.IReservationTaskFacadeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * Created by sss on 2016/11/8.
 */
@Api(tags = "订单定时任务")
@RestController
@RequestMapping("/Task/Reservations")
public class ReservationTaskController {
    @Resource
    private IReservationTaskFacadeService reservationTaskFacadeService;

    @ApiOperation(value = "定时取消任务")
    @RequestMapping("/Cancel")
    public BaseResultDto reservertionCancel() throws Exception {
        BaseL2rParamDto baseL2rParamDto =new BaseL2rParamDto();
        reservationTaskFacadeService.cancelReservationBase(baseL2rParamDto);
        BaseResultDto l2rRs=new BaseResultDto();
        l2rRs.setResultCode(0);
        return l2rRs;
    }


}
